﻿namespace WebOptimizer.Data.Model
{
	public abstract partial class EntityFacadeBase : global::WebOptimizer.Data.Model.IEntityFacadeManager
	{
		#region Public Members

		public global::WebOptimizer.Data.Model.IResourceManager ResourceManager { get; private set; }
		
		#region GenericEntityFacade

		private global::WebOptimizer.Data.Model.GenericEntityFacade _GenericEntityFacade;
		public global::WebOptimizer.Data.Model.GenericEntityFacade GenericEntityFacade
		{
			get
			{
				if (_GenericEntityFacade == null)
					_GenericEntityFacade = new global::WebOptimizer.Data.Model.GenericEntityFacade(this.ResourceManager);
				return _GenericEntityFacade;
			}
		}

		#endregion

		#endregion
		#region Constructors

		protected EntityFacadeBase(global::WebOptimizer.Data.Model.IResourceManager resourceManager)
		{
			this.ResourceManager = resourceManager;
		}

		#endregion
	}
}